package tv.acgn.advertisement.index.dao;

import java.util.List;
import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import tv.acgn.advertisement.index.po.CreativePO;

/**
 * @author junG
 * @program advertisement-ad-pub-dao
 * @description 创意 持久化操作类
 * @date 2019-05-02 01:01
 **/
@Repository
public interface CreativeDao extends JpaRepository<CreativePO, String> {
    /**
     * <h2>根据审核状态查找此状态的全部创意数据</h2>
     *
     * @param auditStatus [1] 审核状态
     *
     * @return {@link Optional<List<CreativePO>>}
     *
     * @author junG
     * @description 根据审核状态查找此状态的全部创意数据
     * @date 23:49 2019/9/11
     */
    Optional<List<CreativePO>> findAllByAuditStatus(Integer auditStatus);
}
